package com.java46.service;

import com.java46.entity.ReservationRecord;
import com.java46.mapper.ReservationRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ClassName ContactService
 * @Description 预约的Service层
 * @Author Tigger Wu
 * @Date 2018/8/1614:28
 * @Version 1.0
 **/

@Service
@Transactional
public class ContactService {
    @Autowired
    private ReservationRecordMapper recordMapper;
    /*
     * 添加预约记录
     *
     * @author Tigger Wu
     * @date 2018/8/16 14:31
     * @param
     * @return
     */
    public void addRecord(ReservationRecord record){
        recordMapper.insert(record);
    }
}
